package com.cskaoyan.controller;

import com.cskaoyan.service.RegionService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.ProvinceVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 接口功能：行政区域
 * @author chen11
 */
@RestController
public class ReginController {

    @Autowired
    RegionService regionService;

    @RequestMapping("admin/region/list")
    public BaseRespVo regionList(){
        List<ProvinceVo> provinceVos = regionService.regionQuerry();
        BaseRespVo.ok(provinceVos);
        return BaseRespVo.ok(provinceVos);
    }

}
